home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWString / Include / FWStrgAr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.8 KB  |  67 lines  |  [TEXT/MPS ]

  1. #ifndef FWSTRGAR_H
  2. #define FWSTRGAR_H
  3. //========================================================================================
  4. //
  5. //    File:                FWStrgAr.h
  6. //    Release Version:    $ 1.0d1 $
  7. //
  8. //    Creation Date:        3/28/94
  9. //
  10. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //========================================================================================
  13.  
  14. #ifndef FWSTRS_H
  15. #include "FWStrs.h"
  16. #endif
  17.  
  18. //========================================================================================
  19. //    Forward class declarations
  20. //========================================================================================
  21.  
  22. class FW_CReadableArchive;
  23. class FW_CWritableArchive;
  24.  
  25.  
  26. //========================================================================================
  27. //    CLASS FW_CStringArchiver
  28. //========================================================================================
  29.  
  30. class FW_CStringArchiver
  31. {
  32. public:
  33.  
  34.     static void Read(FW_CReadableArchive & archive,
  35.                         FW_CString &string);
  36.  
  37.     static void Write(FW_CWritableArchive & archive, 
  38.                       const FW_CString &string);
  39. };
  40.  
  41.  
  42. //========================================================================================
  43. //    Template FW_TStringArchiver
  44. //========================================================================================
  45.  
  46. template <class tString>
  47. class FW_TStringArchiver
  48. {
  49.  
  50. public:
  51.  
  52.     static void * Read(FW_CReadableArchive & archive);
  53.         // Read function for FW_REGISTER_ARCHIVE_CLASS macro.
  54.  
  55.     static void Write(FW_CWritableArchive & archive, 
  56.                       const void *object);
  57.         // Write function for FW_REGISTER_ARCHIVE_CLASS macro.
  58. };
  59.  
  60.  
  61. //========================================================================================
  62. // FW_InitializeStrings
  63. //========================================================================================
  64.  
  65. void FW_InitializeStrings(void);
  66.  
  67. #endif